namespace TableDef
{
    public class t_Pet : ResDataBase
    {
        ///<summary>
        /*动物品质*/
        ///</summary>
        public int m_nQuality { get; set; }

        ///<summary>
        /*动物类型*/
        ///</summary>
        public int m_nPet_type { get; set; }

        ///<summary>
        /*体型*/
        ///</summary>
        public float m_fSize { get; set; }

        ///<summary>
        /*食盆体型*/
        ///</summary>
        public float m_fEatSize { get; set; }

        ///<summary>
        /*变身*/
        ///</summary>
        public int m_nCbody { get; set; }

        ///<summary>
        /*资源方向*/
        ///</summary>
        public int m_nAtkDir { get; set; }

        ///<summary>
        /*资源方向*/
        ///</summary>
        public int m_nRunDir { get; set; }

        ///<summary>
        /*Y轴高度*/
        ///</summary>
        public float m_fOffsetY { get; set; }

        ///<summary>
        /*吃饭速度*/
        ///</summary>
        public int m_nSpeed { get; set; }

        ///<summary>
        /*血量*/
        ///</summary>
        public int m_nHP { get; set; }

        ///<summary>
        /*攻击时间*/
        ///</summary>
        public float m_fAtkTime { get; set; }

        ///<summary>
        /*资源名*/
        ///</summary>
        public string m_strPath { get; set; }


        protected override void OnInit()
        {
            base.OnInit();
            m_nQuality = GetInt("quality");
            m_nPet_type = GetInt("pet_type");
            m_fSize = GetFloat("size");
            m_fEatSize = GetFloat("eatSize");
            m_nCbody = GetInt("cbody");
            m_nAtkDir = GetInt("atkDir");
            m_nRunDir = GetInt("runDir");
            m_fOffsetY = GetFloat("OffsetY");
            m_nSpeed = GetInt("speed");
            m_nHP = GetInt("HP");
            m_fAtkTime = GetFloat("atkTime");
            m_strPath = GetString("path");
        }
    }
}
